<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/layout.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>平方网建材网</title>
    <link href="/temp/css/iframe.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/top.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/right.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/page.css" rel="stylesheet" type="text/css" />
    <link href="/temp/scripts/jqtransformplugin/jqtransform.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/common/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/temp/scripts/jqtransformplugin/jquery.jqtransform.js"></script>
    <script src="/common/json2.js" type="text/javascript"></script>
    <script src="/common/jsmart.js" type="text/javascript"></script>
    
    <script src="/temp/scripts/default.js" type="text/javascript"></script>
    <script src="/temp/scripts/urledit.js" type="text/javascript"></script>
    <script src="/temp/scripts/search.js" type="text/javascript"></script>

    <script language="javascript">
        String.prototype.Trim = function () {
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }  
        $(function () {
            $('form').jqTransform({ imgPath: 'img/' });
        });
    </script>
</head>
<body>
    <center>
        <div id="box">
            <div id="top">
                <!-- top_up -->
                <div class="top_up">
                    <div class="fl">
                        <img src="/temp/resources/images/top_up_bs.jpg" width="148" height="24">
                    </div>
                    <div class="fl top_bs_title">
                        <a href="#">旗下网站</a>
                    </div>
                    <div class="fr top_phone">
                        热线电话: 65377007*8007</div>
                </div>
                <!-- top_logo -->
                <div class="nf top_down">
                    <div class="top_left fl">
                        <div class="top_logo_up">
                            <img src="/temp/resources/images/top_logo.png" width="280" height="62" style="cursor: pointer;"
                                onclick="javascript:window.location='/home.html';" title="平方建材网">
                        </div>
                        <div class="top_logo_down">
                        </div>
                        <div class="top_up_hb">
                        </div>
                    </div>
                    <!-- top_main -->
                    <div class="top_main fl">
                        <img src="/temp/resources/images/top_center_bj.png" width="289" height="178" border="0" usemap="#Map"
                            class="ok_img">
                        <map name="Map" id="Map">
                            <area shape="rect" coords="19,73,78,93" href="#" onclick="sethome(this, window.location)"
                                title="设为首页">
                            <area shape="rect" coords="42,30,99,48" href="#" title="会员区">
                            <area shape="rect" coords="110,3,151,17" href="help.html" title="帮助">
                            <area shape="rect" coords="200,32,259,50" href="#" onclick="window.external.addFavorite('http://www.m2.com.cn','平方建材网');"
                                title="添加收藏">
                            <area shape="rect" coords="231,72,285,89" href="home.html" title="返回主页">
                        </map>
                    </div>
                    <!-- top_right -->
                    <div class="top_right fr">
                        <!-- top_right_username -->
                        <div class="top_right_yh">
                            <div class="top_right_yh">
                                <div class="quit fr">
                                    <div class="fl dl">
                                        <a style="_line-height: 18px; font-size: 13px;" href="login.html" target="_blank"
                                            id="urllogin">登录</a></div>
                                    <div class="fl zc">
                                        <a style="_line-height: 18px; font-size: 13px;" href="#">注册</a></div>
                                </div>
                                <div class="welcome fr not_login" style="font-size: 13px; color: #00A0C6;">
                                    你还未登录</div>
                            </div>
                        </div>
                        <!-- top_right_search -->
                        <div class="nf top_right_search">
                            <div>
                                <form>
                                <div class="jqTransformSelectWrappere">
                                        <select id="mainsearchtype">
                                            <option value="建材">建材</option>
                                            <option value="供应商">供应商</option>
                                        </select>
                                </div>
                                </form>
                                <div class="fl sousuo_wbk">
                                    <input name="" type="text" style="" class="top_wbk ui-autocomplete-input" id="mainsearchinput"
                                        autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></div>
                                <div class="fl an">
                                    <a href="#" id="mainsearch" onclick="topsearch()">快速搜索</a></div>
                            </div>
                        </div>
                        <div class="nf gjz">
                            <ul>
                                <li style="color: #8F9193">关键字</li>
                            </ul>
                        </div>
                    </div>
                    <div class="nf">
                    </div>
                    <!-- top_menu -->
                    <div class="nf top_menu">
                        <div class="top_menu_center">
                            <ul>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/home.html">首页</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/categorylist.html">材料信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/search/supplier.html">厂商信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">无忧询价</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">快递查询</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#" id="specialmenu"></a>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="top_up_zh">
                        </div>
                    </div>
                </div>
            </div>
            <!-- InstanceBeginEditable name="EditMain" -->  
            <link href="/temp/css/product_top.css" rel="stylesheet" type="text/css" />   
            <link href="/temp/css/product_center.css" rel="stylesheet" type="text/css" />   
            <div id="main">
                <div>
                    <div class="main_wzdh">所在位置：<a href="/categorylist.html">材料信息</a> &gt; <label>找材料</label></div>
                </div>
                <div id="topcategorylist">
                	<!--材料分类筛选 开始-->
                    
                	<!--材料分类筛选 结束-->
                </div>
                <div id="leafcategorylist">
                	<!--二级分类筛选 开始-->
                	<!--二级分类筛选 结束-->
                </div>
                <div  id="brandandproplist">
                	<!--属性筛选 开始-->
                	<!--属性筛选 结束-->
                </div>
                <div id="proponlylist">
                </div>
                <script language="javascript">
					$(document).ready(
											function () {
												$("#show_all").live("click", function () {
													$(this).hide();
													$("#showallp").hide();
													$(".tips").hide();
													$("#close_all").show();
													$("#closeallp").show();
													$(".nokeyprops").removeClass("hidden");
												});
				
												$("#close_all").live("click", function () {
													$(this).hide();
													$("#closeallp").hide();
													$("#show_all").show();
													$("#showallp").show();
													$(".tips").show();
													$(".nokeyprops").addClass("hidden");
												});
											});
				</script>
                <div class="product_center">
                	<!--高级搜索 开始-->
                    <div class="product_center_bd fl">
                                <form action="#" method="post">
                                <div class="fl product_center_zk">
                                    <div class="product_center_gjz">
                                        <div class="fl jg">材料名称：</div>
                                        <div class="fl product_center_k"><input id="searchName" value="" name="" type="text" class="product_center_wbk" maxlength="50"></div>
                                        <div class="nf"></div>
                                    </div>
                                    <div class="product_center_gjz">
                                         <div class="fl jg">&nbsp;&nbsp;&nbsp;厂商名：</div>
                                         <div class="fl product_center_k"><input id="searchManufacturer" value="" name="" type="text" class="product_center_wbk" maxlength="50"></div>
                                         <div class="nf"></div>
                                    </div>
                                </div>
                                <div class="fl product_center_zk">
                                    <div class="product_center_gjz">
                                       <div class="fl jg"> &nbsp;&nbsp;&nbsp;品牌：</div>
                                       <div class="fl product_center_k"><input id="searchBrand" value="" name="" type="text" class="product_center_wbk" maxlength="50"></div>
                                       <div class="nf"></div>
                                    </div>
                                    <div class="product_center_gjz">
                                        <div class="fl jg">价格(元)：</div>
                                        <div class="fl">
                                        <div class="fl">
                                           <div class="jg_wbk"> <input maxlength="50" id="searchlPrice" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text', clipboardData.getData('text').replace(/[^\d]/g, ''))" style="ime-mode:disabled;" name="" value="" type="text" class="short tariff_wbk"></div>
                                        </div>
                                        <div class="fl jg_xhx"></div>
                                        <div class="fl">
                                        
                                            <div class="jg_wbk"><input maxlength="50" id="searchhPrice" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text', clipboardData.getData('text').replace(/[^\d]/g, ''))" style="ime-mode:disabled;" name="" value="" type="text" class="short tariff_wbk"></div>
                                            
                                        </div>
                                     
                                        </div>
                                           <div class="nf"></div>
                                    </div>
                                </div>
                                <div class="fl product_center_zk">
                                    <div class="product_center_gjz">
                                        <div class="fl jg"> 规格型号：</div>
                                         <div class="fl product_center_k"><input id="searchSpec" value="" name="" type="text" class="product_center_wbk" maxlength="50"></div>
                                         <div class="nf"></div>
                                    </div>
                                    <div class="product_center_gjz fl">
                                     <div class="fl jg"> 
                                        <label>
                                            日期范围：</label></div>
                                        <div class="jqTransformSelectWrappere" style="float: left;">
                                            <div class="jqTransformSelectWrapper" style="z-index: 10; width: 175px; "><div><span style="width: 158px; ">不限</span><a href="#" class="jqTransformSelectOpen"></a></div><ul style="width: 173px; height: 95px; overflow-x: hidden; overflow-y: hidden; display: none; visibility: visible; "><li><a href="#" index="0" class="selected">不限</a></li><li><a href="#" index="1">一周之内</a></li><li><a href="#" index="2">两周之内</a></li><li><a href="#" index="3">一月之内</a></li><li><a href="#" index="4">一年之内</a></li></ul><select id="searchDate" style="width: 158px; " >
                                                <option value="">不限</option>
                                                <option value="7">一周之内</option>
                                                <option value="14">两周之内</option>
                                                <option value="30">一月之内</option>
                                                <option value="365">一年之内</option>
                                            </select></div>
                                        </div>
                                        <div class="nf"></div>
                                    </div>
                                </div>
                                </form>
                    
                            </div>       
            		<div class="fl">
                        <div class="product_center_ss">
                            <a id="search_require" style="cursor: pointer;" onclick="productsearch()">
                                <img src="/temp/resources/images/product_center/product_center_ss.jpg" width="62" height="27" border="0"></a>
                        </div>
                    </div>                                         
                	<!--高级搜索 结束-->
                </div>
                <!-- main_left -->
                <div id="left" class="fl">
                    <div>                        
                        <!--材料列表 开始-->
                        <div class="cpss_left fl">
                            <div class="cpss_dh ">
                                <div class="result fl">
                                    搜索结果</div>
                                <div class="eight fl" style="width: 200px;" id="countinfo">
                                    </div>
                                <div id="orderlist">
                                </div>
                                <div class="nf">
                                    <div class="cpss_lb">
                                        <ul id="productlist">

                                        </ul>
                                    </div>
                                    <div>
                                    </div>
                                </div>
                            </div>
                        </div>                            
                        <!--材料列表 开始-->                        
                    </div>
                    <!--分页-->
                    <div id="pagelist">
                        
                	</div>
                </div>
                <div id="right" class="fl">
                    <iframe allowtransparency="true" src="/temp/partial/supplierinfoads.html" frameborder="0"
                        id="csmc_gg1_iframe" scrolling="no"></iframe>
                </div>
            </div>       
            
            <script id="topcategory" type="text/x-jsmart-tmpl">			
                    <div class="product_top">
                        <div class="product_top_nr">
                            <div class="product_top_table">
                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                    <input type="hidden" value="45" id="categorycount">
                                    <tbody>
                                        <tr>
                                            <td class="product_top_table_x" valign="top">
                                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                                    <tbody>
                                                        <tr>
                                                            <td width="100" class="product_top_title">
                                                                分类：
                                                            </td>
                                                            <td class="product_top_all">
                                                                <a class="currentall">全部</a>
                                                            </td>
                                                            <td class="product_top_wz">
                                                                <ul>
																	<li>
																	{foreach $result.facets.topcategory.terms as $j => $category}  
																		<a href="{urlset('topcategory', $category.term)}" title="{$category.term} {$category.count}">{$category.term}</a>
																	{/foreach}
																	</li>
                                                                </ul>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="product_top_news_other">
                        </div>
                    </div>
			</script>
            
            <script id="leafcategory" type="text/x-jsmart-tmpl">			
                    <div class="product_top">
                            <div class="product_top_nr">
                                <div class="product_top_table">
                                    <table width="978" border="0" cellspacing="0" cellpadding="0">
                                            <tbody><tr>
                                                <td class="product_top_xz">
                                                    <div width="92px;" valign="top" class="product_top_xz_title">
                                                            当前筛选条件：
                                                        </div><div class="product_top_xz_nr">
                                                                <div class="product_top_xz_wz">
                                                                    <a title="去除当前类别--{$result.facets.topcategory}" class="property" href="{urlset('topcategory', '')}" style="height:18px;">
                                                                        类别：{$result.facets.topcategory}
                                                                    </a>
                                                                </div>
                                                                <a href="{urlset('topcategory', '')}">
                                                                    <img src="/temp/resources/images/product_top/close.gif" width="17" height="19" border="0"></a>
                                                            </div><table width="992" border="0" cellspacing="0" cellpadding="0">
                                                        
                                                               
                                                    </table>
                                                </td>
                                            </tr>
                                            <input type="hidden" value="30" id="categorycount">
                                            <tr>
                                                <td class="product_top_table_x" valign="top">
                                                    <table width="978" border="0" cellspacing="0" cellpadding="0">
                                                        <tbody><tr>
                                                            <td width="100" class="product_top_title">
                                                                分类：
                                                            </td>
                                                            <td class="product_top_all">
                                                                <a class="currentall">全部</a>
                                                            </td>
                                                            <td class="product_top_wz">
                                                                <ul>
                                                                    <li>
																		{foreach $result.facets.leafcategory.terms as $j => $category}  
																			<a href="{urlset('leafcategory', $category.term)}" title="{$category.term} {$category.count}">{$category.term}</a>
																		{/foreach}
                                                                    </li>
                                                                </ul>
                                                            </td>
                                                        </tr>
                                                    </tbody></table>
                                                </td>
                                            </tr>
                                    </tbody></table>
                                </div>
                            </div>
                            <div class="product_top_news_other"></div>
                        </div>                    
			</script>
            
            <script id="brandandprop" type="text/x-jsmart-tmpl">	
				<style>
					.hidden
					{
						display: none;
					}
				</style>
				<div class="product_top">
					<div class="product_top_nr">
						<div class="product_top_table">
							<table width="978" border="0" cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<td class="product_top_xz">
											<div width="92px;" valign="top" class="product_top_xz_title">
												当前筛选条件：
											</div>
											<div class="product_top_xz_nr">
												<div class="product_top_xz_wz">
													<a title="去除当前类别--{$result.facets.leafcategory}" class="property" href="{urlset('leafcategory', '')}">类别： {$result.facets.leafcategory} </a>
												</div>
												<a href="{urlset('leafcategory', '')}">
													<img src="/temp/resources/images/product_top/close.gif" width="17" height="19" border="0"></a>
											</div>
											<table width="992" border="0" cellspacing="0" cellpadding="0">
											</table>
										</td>
									</tr>
									<input type="hidden" value="0" id="categorycount">
									<tr>
										<td class="product_top_table_x" valign="top">
											<table width="978" border="0" cellspacing="0" cellpadding="0">
												<tbody>
													<tr>
														<td width="100" class="product_top_title">
															品牌：
														</td>
														<td class="product_top_all">
															<a class="currentall">全部</a>
														</td>
														<td class="product_top_wz">
															<ul>
																<li>
																	{foreach $result.facets.brand.terms as $j => $brand} 
																		<a href="{urlset('kwBrand', $brand.term)}" title="{$brand.term} {$brand.count}">{$brand.term}</a> 
																	{/foreach}
																</li>
															</ul>
														</td>
													</tr>
												</tbody>
											</table>
										</td>
									</tr>
									{foreach $result.facets.propvalue as $j => $propvalue} 
										{if ($propvalue.iskeyprop == "1")}
											<tr>
												<td class="product_top_table_x" valign="top">
													<table width="978" border="0" cellspacing="0" cellpadding="0">
														<tbody>
															<tr>
																<td width="100" class="product_top_title">
																	{$propvalue.name}：
																</td>
																<td class="product_top_all">
																	<a class="currentall">全部</a>
																</td>
																<td class="product_top_wz">
																	<ul>
																		<li>
																			{foreach $propvalue.values as $j => $value} 
																				<a href="{urlset('kwProp', addprop($data.result.facets.proplist, $propvalue.name, $value.value))}" title="{$value.value} {$value.count}">{$value.value}</a> 
																			{/foreach}																	
																		</li>
																	</ul>
																</td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
										{else}
											<tr class="hidden nokeyprops">
												<td class="product_top_table_x" valign="top">
													<table width="978" border="0" cellspacing="0" cellpadding="0">
														<tbody>
															<tr>
																<td width="100" class="product_top_title">
																	{$propvalue.name}：
																</td>
																<td class="product_top_all">
																	<a class="currentall">全部</a>
																</td>
																<td class="product_top_wz">
																	<ul>
																		<li>
																			{foreach $propvalue.values as $j => $value} 
																				<a href="{urlset('kwProp', addprop($data.result.facets.proplist, $propvalue.name, $value.value))}" title="{$value.value} {$value.count}">{$value.value}</a> 
																			{/foreach}																	
																		</li>
																	</ul>
																</td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>										
										{/if}
									{/foreach}
								</tbody>
							</table>
						</div>
					</div>
					<div class="product_top_news">
						<div class="fl">
							<img id="closeallp" src="/temp/resources/images/product_top/product_top_tb_02.png"
								width="19" height="19" style="display: none;">
							<img id="showallp" class="hidden" src="/temp/resources/images/product_top/product_top_tb_01.png"
								width="19" height="19" style="display: inline;">
						</div>
						<div class="fl more">
							<a href="javascript:void(0)" id="show_all" style="display: inline;">更多条件 </a><span
								style="color: rgb(136, 136, 136); display: none;" class="tips"></span><a class="hidden"
									href="javascript:void(0)" id="close_all" style="display: none;">收起</a>
						</div>
						<input type="hidden" value="(级别  材质(牌号))" id="keys">
					</div>
				</div>
			
			</script>
            
            <script id="proponly" type="text/x-jsmart-tmpl">	
				<style>
					.hidden
					{
						display: none;
					}
				</style>
				<div class="product_top">
					<div class="product_top_nr">
						<div class="product_top_table">
							<table width="978" border="0" cellspacing="0" cellpadding="0">
								<tbody>
									{foreach $result.facets.propvalue as $j => $propvalue} 
										{if ($propvalue.iskeyprop == "1")}
											<tr>
												<td class="product_top_table_x" valign="top">
													<table width="978" border="0" cellspacing="0" cellpadding="0">
														<tbody>
															<tr>
																<td width="100" class="product_top_title">
																	{$propvalue.name}：
																</td>
																<td class="product_top_all">
																	<a class="currentall">全部</a>
																</td>
																<td class="product_top_wz">
																	<ul>
																		<li>
																			{foreach $propvalue.values as $j => $value} 
																				<a href="{urlset('kwProp', addprop($data.result.facets.proplist, $propvalue.name, $value.value))}" title="{$value.value} {$value.count}">{$value.value}</a> 
																			{/foreach}																	
																		</li>
																	</ul>
																</td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
										{else}
											<tr class="hidden nokeyprops">
												<td class="product_top_table_x" valign="top">
													<table width="978" border="0" cellspacing="0" cellpadding="0">
														<tbody>
															<tr>
																<td width="100" class="product_top_title">
																	{$propvalue.name}：
																</td>
																<td class="product_top_all">
																	<a class="currentall">全部</a>
																</td>
																<td class="product_top_wz">
																	<ul>
																		<li>
																			{foreach $propvalue.values as $j => $value} 
																				<a href="{urlset('kwProp', addprop($data.result.facets.proplist, $propvalue.name, $value.value))}" title="{$value.value} {$value.count}">{$value.value}</a> 
																			{/foreach}																	
																		</li>
																	</ul>
																</td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>										
										{/if}
									{/foreach}								
								</tbody>
							</table>
						</div>
					</div>
					<div class="product_top_news">
						<div class="fl">
							<img id="closeallp" src="/temp/resources/images/product_top/product_top_tb_02.png"
								width="19" height="19" style="display: none;">
							<img id="showallp" class="hidden" src="/temp/resources/images/product_top/product_top_tb_01.png"
								width="19" height="19" style="display: inline;">
						</div>
						<div class="fl more">
							<a href="javascript:void(0)" id="show_all" style="display: inline;">更多条件 </a><span
								style="color: rgb(136, 136, 136); display: none;" class="tips"></span><a class="hidden"
									href="javascript:void(0)" id="close_all" style="display: none;">收起</a>
						</div>
						<input type="hidden" value="(级别  材质(牌号))" id="keys">
					</div>
				</div>
			
			</script>
            
            
            <!--排序-->
            <script id="order" type="text/x-jsmart-tmpl">   	
					<div class="cpss_px fr" style="width: 112px;">
						<a href="#" id="uptime">按照日期排序</a>
					</div>
					<div class="cpss_px fr" style="width: 112px;">
						<a href="#" id="uptime">按照价格排序</a>
					</div>
			</script>               
           
            <!--材料搜索结果列表-->
            <script id="product" type="text/x-jsmart-tmpl">
				{foreach $result.hits.hits as $j => $product}                                            
					<li class="cpss_lb_d">
                    	<div class="cpss_lb_top">
		                    <div class="cpss_lb_top_cj"><b> 商家</b>：
								<a style="_line-height:20px;" href="/temp/supplierinfo.html?id={$product._source.supplier}" title="{$product._source.supplier}" target="_blank">
									{$product._source.supplier}
								</a>
							</div>
                		    <div class="fl cpss_lb_tp">
		    	                <div class="cpss_lb_bt">
        	    			        <a href="/temp/productinfo.html?id={$product._source._id}" title="{$product._source.name}" target="_blank">{$product._source.name}</a>
								</div>
		                    </div>
        		            <div class="fl cpss_lb_nr">
                			    <div class="cpss_lb_pp fl" title="品牌：{$product._source.brand};">
				                    <b>品牌:</b>{$product._source.brand};
                			    </div>
			                    <div class="nf cpss_lb_pp_dw">
            				        <div class="fl cpss_lb_xlxh">
					                    <b>系列型号</b>：
									</div>
				                    <div class="fl cpss_lb_xlxh_nr" title="{$product._source.ext2}">{$product._source.ext2}</div>
				                    <div class="nf">
                				    </div>
			                    </div>								
								<div class="cpss_lb_pp_dw">
                                	<div class="fl remark"><b>备注</b>：</div>
                                    <div class="fl cpss_bz">{$product._source.remark}</div>
                                    <div class="nf"></div>
                                </div>
            		        </div>
							<!--div class="fl cpss_lb_jg">
								<div class="cpss_lb_jg_nr">
									<a href="/fast_search5.html" target="_blank">
										<img src="/temp/resources/images/product_top/please.jpg" width="106" height="42"
											onclick="#" style="cursor: pointer;" border="0">
									</a>
								</div>
							</div-->
							<div class="fl cpss_lb_jg">
								<div class="cpss_lb_jg_nr">
									<div class="cpss_lb_price">
										<div class="cpss_lb_price_nr">
											<ul>
												<li class="cpss_lb_price_sz">{$product._source.price}</li>
												<li class="cpss_lb_price_dw"> 元 / {$product._source.unit}</li>
											</ul>
										</div>
									</div>
								</div>
                            </div>
        		            <div class="cpss_lb_down nf">
                			    <div class="cpss_lb_down_sj cpss_lb_down_l">
				                    <div class="fl cpss_lb_down_dq">地区：上海</div>
				                    <div class="fl  time">更新时间：{$product._source.update_at}</div>
			                    </div>
            		        </div>
                    	</div>
                    </li>
				{/foreach}				
            </script>
            
            <script>
            	var current = $(".top_menu_center ul li")[1].children[1].children[0];
				$(current).addClass("current hasCurrent");
						var params = "";
						var kwName = "";
						var kwBrand = "";
						var kwSpec = "";
						var kwSupplier = "";
						var kwlPrice = "";
						var kwhPrice = "";
						var kwDay = "";
						var kwProp = "";
						
						var topcategory="";
						var leafcategory="";
						
						var myurl=new UrlEdit.URL(document.URL);		
						if(myurl.get("pageIndex") != undefined && myurl.get("pageIndex") != "")
							currentpage = myurl.get("pageIndex");
						if(myurl.get("pagesize") != undefined && myurl.get("pagesize") != "")
							pagesize = myurl.get("pagesize");
							
						if(myurl.get("keyword") != undefined && myurl.get("keyword") != "")
							keyword = myurl.get("keyword");									
						if(myurl.get("kwName") != undefined && myurl.get("kwName") != "")
							kwName = myurl.get("kwName");		
						if(myurl.get("kwBrand") != undefined && myurl.get("kwBrand") != "")
							kwBrand = myurl.get("kwBrand");		
						if(myurl.get("kwSpec") != undefined && myurl.get("kwSpec") != "")
							kwSpec = myurl.get("kwSpec");		
						if(myurl.get("kwSupplier") != undefined && myurl.get("kwSupplier") != "")
							kwSupplier = myurl.get("kwSupplier");		
						if(myurl.get("kwlPrice") != undefined && myurl.get("kwlPrice") != "")
							kwlPrice = myurl.get("kwlPrice");		
						if(myurl.get("kwhPrice") != undefined && myurl.get("kwhPrice") != "")
							kwhPrice = myurl.get("kwhPrice");		
						if(myurl.get("kwDay") != undefined && myurl.get("kwDay") != "")
							kwDay = myurl.get("kwDay");					
						if(myurl.get("topcategory") != undefined && myurl.get("topcategory") != "")
							topcategory = myurl.get("topcategory");		
						if(myurl.get("leafcategory") != undefined && myurl.get("leafcategory") != "")
							leafcategory = myurl.get("leafcategory");				
							
						if(myurl.get("kwProp") != undefined && myurl.get("kwProp") != "")
							kwProp = myurl.get("kwProp");		
						//高级搜索内容
						$("#searchName").attr("value", (decodeURI(kwName)));	
						$("#searchBrand").attr("value", (decodeURI(kwBrand)));	
						$("#searchSpec").attr("value", (decodeURI(kwSpec)));	
						$("#searchManufacturer").attr("value", (decodeURI(kwSupplier)));	
						$("#searchlPrice").attr("value", (decodeURI(kwlPrice)));	
						$("#searchhPrice").attr("value", (decodeURI(kwhPrice)));	
						$("#searchDate").attr("value", (decodeURI(kwDay)));					
						
						var skip = pagesize * (currentpage - 1);	
						params = "?from=" + skip + "&size=" + pagesize + "&top=" + topcategory + "&leaf=" + leafcategory + "&kwName=" + kwName + "&kwBrand=" + kwBrand + "&kwSpec=" + kwSpec + "&kwSupplier=" + kwSupplier + "&kwlPrice=" + kwlPrice + "&kwhPrice=" + kwhPrice + "&kwDay=" + kwDay + "&kwProp=" + kwProp;
						
						if (keyword != "")
						{
							params = "?keyword=" + keyword;
							$("#searchName").attr("value", (decodeURI(keyword)));	
						}
						
						//搜索参数																
												
						$.ajax({
							type: "GET",
							url: searchproduct + params,
							dataType: "jsonp",
							jsonp:"jsonpcallback",
							success:function(data, status){
								buildPage(data.result.hits.total);	
								buildSearchCount(data);								
								
								var tpl = new jSmart(document.getElementById('product').innerHTML);
								var res = tpl.fetch(data);
								$("#productlist").html(res);
								
								//一级分类
								if(data.result.facets.topcategory != null && data.result.facets.topcategory != undefined)
								{
									var tpl = new jSmart(document.getElementById('topcategory').innerHTML);
									var res = tpl.fetch(data);
									$("#topcategorylist").html(res);
								}
								//二级分类
								if(data.result.facets.leafcategory != null && data.result.facets.leafcategory != undefined)
								{
									data.result.facets.topcategory = (decodeURI(topcategory));
									var tpl = new jSmart(document.getElementById('leafcategory').innerHTML);
									var res = tpl.fetch(data);
									$("#leafcategorylist").html(res);
								}
								//品牌&属性
								if((data.result.facets.brand != null && data.result.facets.brand != undefined))
								{
									data.result.facets.leafcategory = (decodeURI(leafcategory));
									data.result.facets.proplist = initprops((decodeURI(kwProp)));
									var tpl = new jSmart(document.getElementById('brandandprop').innerHTML);
									var res = tpl.fetch(data);
									$("#brandandproplist").html(res);
								}
								else 
								{
									if((data.result.facets.propvalue != null && data.result.facets.propvalue != undefined))
									{
										data.result.facets.leafcategory = (decodeURI(leafcategory));
										data.result.facets.brand = (decodeURI(kwBrand));
										data.result.facets.proplist = initprops((decodeURI(kwProp)));
												
										var tpl = new jSmart(document.getElementById('proponly').innerHTML);
										var res = tpl.fetch(data);
										$("#proponlylist").html(res);
									}
								}		
								
								//排序
														
						    }
						})
			</script>     
			<!-- InstanceEndEditable -->
            <script id="page" type="text/x-jsmart-tmpl">
				<div class="page">
					<div class="pagination">
						{if $pagecount > 1}			
							<a class="pageNum"><b>
							{$currentpage}
							</b>/<b>
							{$pagecount}
							</b></a>	
							{if (1 != $currentpage)}
								<a href="{urlset('pageIndex', 1)}" class="first">首页</a>
								<a href="{urlset('pageIndex', $currentpage-1)}" class="prev">上一页</a>
							{/if}	
							
							{for $i=$start to $end}
								{if ($i == $currentpage)}
									<span class="current">{$i}</span>
								{else}
									<a href="{urlset('pageIndex', $i)}">{$i}</a>
								{/if}
							{/for}
							
							{if ($pagecount != $currentpage)}
								<a href="{urlset('pageIndex', $currentpage+1)}" class="first">下一页</a>
								<a href="{urlset('pageIndex', $pagecount)}" class="last">尾页</a>
							{/if}	
						{/if}
					</div>
				</div>
			</script>            
            <script id="count" type="text/x-jsmart-tmpl">
			共 {$rows.length} 条记录
			</script>    
            <script id="searchcount" type="text/x-jsmart-tmpl">
			共 {$result.hits.total} 条记录
			</script>
            <div class="nf">
            <iframe allowtransparency="true" src="/temp/partial/bottom.html" frameborder="0" id="bottom_iframe" scrolling="no"></iframe>
            </div>
        </div>
    </center>
</body>
<!-- InstanceEnd --></html>
